<?php
function checkcmd($key)
{
   if ($key=='media') $get=$_GET['song']; else $get=$_GET[$key]; 
   $cmd="SELECT * FROM `".$key."` WHERE ".$key."_hash='".$get."'"; 
   $excute=mysql_query($cmd);
   $info=mysql_fetch_assoc($excute);
   if (mysql_num_rows($excute)==0) return 'notok'; else return $info;   
}
?>